<?php
declare (strict_types = 1);
/**
 * Created by PhpStorm.
 * User: broceli
 * Date: 19-9-9
 * Time: 下午4:21
 */
namespace app\exception;

use think\exception\Handle;
use think\exception\HttpException;
use think\exception\ValidateException;
use think\Response;
use Throwable;

class Http extends Handle
{
    public function render($request, Throwable $e): Response
    {
        return json(['code'=>-1,'error'=>$e->getMessage()], 422);
    }

}